package cn.acyou.leo.tool.test;

import cn.acyou.leo.framework.util.FileUtil;
import org.springframework.util.PatternMatchUtils;

import java.util.Arrays;

/**
 * @author youfang
 * @version [1.0.0, 2024/4/30 13:41]
 **/
public class MainTest401 {
    public static void main1(String[] args) {
        System.out.println(PatternMatchUtils.simpleMatch("*:*:*","user:api:save"));
        System.out.println(PatternMatchUtils.simpleMatch("user:api:*","user:api:save"));
        System.out.println(PatternMatchUtils.simpleMatch("user:api1:*","user:api:save"));
    }

    public static void main(String[] args) {
        //String text = "△▽○◇□☆▷◁♤♡♢♧▲▼●◆■★▶◀♠♥♦♣☼☽♀☺◐√☑✔☜☝☞㏂☀☾♂☹◑◑×✘▪•‥…▁▂▃▄▅▆▇█∷※▏▎▍◎¤۞㉿✿❀❃❁❤☃✈①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳﹢﹣·/=﹤﹥≦≧≮≯≡×÷＝＜＞∶∵∴∷∝∽∈∧⊙⌒∟≌∨∪⊕∠";
        String text = "△▽○◇□☆▲▼●◆■★♦♢☑√✔♀♂×☒✘▪•‥…▁█∷※▏▎▌";
        final char[] chars = text.toCharArray();
        for (char c : chars) {
            FileUtil.mkdir("E:\\temp\\sortDir2\\"+c+c+c+c+c+"11111");
        }
        Arrays.sort(chars);
        final String s = Arrays.toString(chars);
        System.out.println(s);
    }
}
